﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SharePointEnforcer.Utilities;

namespace SharePointEnforcer
{
    class EnforcerSettings
    {
        public bool HelpRequested { get; set; }
        public bool HelpNeeded { get; set; }
        public bool WhatIf { get; set; }
        public List<string> UnknownCommands { get; protected set; }
        public EnforcerStringCollection ErrorMessages { get; protected set; }
        public List<string> RulesPaths { get; protected set; }
        public List<string> HandlerPaths { get; protected set; }

        public EnforcerSettings()
        {
            this.UnknownCommands = new List<string>();
            this.ErrorMessages = new EnforcerStringCollection();
            this.RulesPaths = new List<string>();
            this.HandlerPaths = new List<string>();
        }


        public bool ShowHelp
        {
            get
            {
                if (this.HelpNeeded || this.HelpRequested || this.ErrorMessages.Count > 0) return true;
                return false;
            }
        }
    }



}
